package com.example.demo.entity;


import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serial;
import java.io.Serializable;
import java.util.LinkedHashMap;
import java.util.Map;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 
 * @TableName dictionary
 */

@Schema(description = "字典信息")
@EqualsAndHashCode(callSuper = true)
@TableName(value ="dictionary")
@Data
public class Dictionary extends BaseEntity implements Serializable {

    @Schema(description = "类别名")
    private String categoryName;

    @Schema(description = "字典名")
    private String name;

    @Schema(description = "字典值")
    private String value;

    @Serial
    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    public static String entityTitle="字典";

    public static Map<String,String> getExcelCols(){
        Map<String,String> map=new LinkedHashMap<>();
        map.put("categoryName","类别名");
        map.put("name","字典名");
        map.put("value","字典值");
        return map;
    }
}